code: def import_files(file_path: str, module_name: str = None):
      """The function imports all of the files present in file_path's directory.
      This is useful for end user in case they want to easily import files without
      mentioning each of them in their __init__.py. module_name if specified
      is the full path to module under which all modules will be imported.
  
      my_project/
          my_models/
              my_model.py
              __init__.py
  
      Contents of __init__.py
  
      ```
      from mmf.utils.env import import_files
  
      import_files(__file__, "my_project.my_models")
      ```
  
      This will then allow you to import `my_project.my_models.my_model` anywhere.
  
      Args:
          file_path (str): Path to file in whose directory everything will be imported
          module_name (str): Module name if this file under some specified structure
      """
      for file in os.listdir(os.path.dirname(file_path)):
          if file.endswith(".py") and not file.startswith("_"):
              import_name = file[: file.find(".py")]
              if module_name:
                  importlib.import_module(
                      f"{module_name}.{import_name}"
                  )
              else:
                  importlib.import_module(f"{import_name}")
  
file_path: mmf/mmf/utils/env.py
imports: import glob
  import importlib
  import logging
  import os
  import random
  import sys
  from datetime import datetime
  import numpy
  import torch
  from omegaconf import OmegaConf, open_dict
label_desc: Use image node_id 3 for calling a global function with example usage: import_files(file_path, module_name) without return types