code: def create_forwarding_script(filepath, module, func_name, *nargs, **kwargs):
      
      doc = dict(
          module=module,
          func_name=func_name)
  
      if nargs:
          doc["nargs"] = nargs
      if kwargs:
          doc["kwargs"] = kwargs
  
      body = dump_yaml(doc)
      create_executable_script(filepath, body, "_rez_fwd")
docs: Create a 'forwarding' script.
  
      A forwarding script is one that executes some arbitrary Rez function. This
      is used internally by Rez to dynamically create a script that uses Rez,
      even though the parent environment may not be configured to do so.