def mkdir(udid, remote_path, bundle_id=None):
        """
        Create a directory on the iOS device.

        Args:
            udid (str): The UDID of the iOS device.
            remote_path (str): The path of the directory to be created on the iOS device.
            bundle_id (str, optional): The bundle ID of the app. Defaults to None.

        Examples:
            Create a directory in the DCIM directory::

                >>> TIDevice.mkdir("00008020-001270842E88002E", "/DCIM/test")

            Create a directory in the Documents directory of the Keynote app::

                >>> TIDevice.mkdir("00008020-001270842E88002E", "/Documents/test", "com.apple.Keynote")

        """
        if bundle_id:
            sync = BaseDevice(udid, Usbmux()).app_sync(bundle_id)
        else:
            sync = BaseDevice(udid, Usbmux()).sync

        status = sync.mkdir(remote_path)
        if int(status) == 0:
            print("created", remote_path)
        else:
            raise AirtestError(f"<{status.name} {status.value}> Failed to create directory {remote_path}")

        Create a directory on the iOS device.

        Args:
            udid (str): The UDID of the iOS device.
            remote_path (str): The path of the directory to be created on the iOS device.
            bundle_id (str, optional): The bundle ID of the app. Defaults to None.

        Examples:
            Create a directory in the DCIM directory::

                >>> TIDevice.mkdir("00008020-001270842E88002E", "/DCIM/test")

            Create a directory in the Documents directory of the Keynote app::

                >>> TIDevice.mkdir("00008020-001270842E88002E", "/Documents/test", "com.apple.Keynote")

        
airtest/core/ios/ios.py