code: def create_instance(prj_cls, instance_args):
      name = prj_cls.__name__
  
      # Format instance arguments into strings
      instance_params = ",\n                            ".join(
          f"{k}={v}" for k, v in sorted(instance_args.items())
      )
  
      if instance_params:
          instance_params = (
              "\n                            " + instance_params
          )
  
      instance_creation_code = f"{name}({instance_params})"
  
      prj_inst = prj(**instance_args)
  
      return prj_inst, instance_creation_code
  
file_path: cartopy/docs/make_projection.py
imports: import inspect
  from pathlib import Path
  import textwrap
  import matplotlib.pyplot
  import numpy
  import cartopy.crs
label_desc: Use image node_id 5 for calling a global function with example usage: create_instance(prj_cls, instance_args) and returns: prj_inst,  instance_creation_code