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

        Args:
            remote_path (str): The remote path to create.
            bundle_id (str, optional): The bundle ID of the app. Defaults to None.


        Examples:

                >>> dev = connect_device("iOS:///http+usbmux://udid")
                >>> dev.mkdir("/Documents/test_dir", "com.apple.Keynote")

        """
        if not self.is_local_device:
            raise LocalDeviceError()
        TIDevice.mkdir(self.udid, remote_path, bundle_id=bundle_id)

        Create a directory on the iOS device.

        Args:
            remote_path (str): The remote path to create.
            bundle_id (str, optional): The bundle ID of the app. Defaults to None.


        Examples:

                >>> dev = connect_device("iOS:///http+usbmux://udid")
                >>> dev.mkdir("/Documents/test_dir", "com.apple.Keynote")

        
airtest/core/ios/ios.py