parameters: (self, file_name)
docstring: Take a single metadata csv file and convert it to yaml
          :param file_name: path to a metadata csv file
docstring_summary: Take a single metadata csv file and convert it to yaml
          :param file_name: path to a metadata csv file
docstring_tokens: Take a single metadata csv file and convert it to yaml : param file_name : path to a metadata csv file
function: def process_integration_metric(self, file_name):
          """
          Take a single metadata csv file and convert it to yaml
          :param file_name: path to a metadata csv file
          """
          if file_name.endswith("/metadata.csv"):
              key_name = basename(
                  dirname(normpath(file_name))
              )
          else:
              key_name = basename(
                  file_name.replace("_metadata.csv", "")
              )
          new_file_name = "{}{}.yaml".format(
              self.data_integrations_dir, key_name
          )
          self.metric_csv_to_yaml(key_name, file_name, new_file_name)
function_tokens: def process_integration_metric ( self , file_name ) : if file_name . endswith ( "/metadata.csv" ) : key_name = basename ( dirname ( normpath ( file_name ) ) ) else : key_name = basename ( file_name . replace ( "_metadata.csv" , "" ) ) new_file_name = "{}{}.yaml" . format ( self . data_integrations_dir , key_name ) self . metric_csv_to_yaml ( key_name , file_name , new_file_name )